const express = require('express')
const router = express.Router()
const  maintainers_handler  = require('../router_handler/maintainers_handler.js')

// 获取维修员个人信息
router.get('/getmaintainerinfo', maintainers_handler.getMaintainerInfo)

// 维修记录
router.get('/getmaintainlist', maintainers_handler.getMaintainList)

// 接单
router.get('/takeorderlist', maintainers_handler.takeOrderList)

// 特邀订单
router.get('/assigntakeorder', maintainers_handler.AssignTakeOrder)

// 上传头像
router.post('/avatar', maintainers_handler.uploadAvatar)

// 接单确认
router.post('/confirmorder', maintainers_handler.confirmOrder)

// 更新订单
router.post('/updateorder', maintainers_handler.updateOrder)

// 查询维修员评分
router.get('/getscore', maintainers_handler.getScore)

// 修改密码
router.post('/updatepwd', maintainers_handler.updatePwd)

// 修改信息
router.post('/updateInfo', maintainers_handler.updateInfo)

module.exports = router